<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>添加视频分类</title>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>视频分类管理</a></li>
        <li><a  href="{:cmf_plugin_url('Aliyunvod://AdminVod/addCategory')}">添加视频分类</a></li>
        
    </ul>
    <form class="js-ajax-form" action="" method="post">
        
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <notempty name="category">
                    <th width="50">{:lang('SORT')}</th>
                </notempty>
                <th width="50">ID</th>
                <th width="50">分类id</th>
                <th width="50">分类名称</th>
                <th width="50">Type</th>
                <th width="50">level</th>
                <th width="50">添加时间</th>
                <th width="50">操作</th>
            </tr>
            </thead>
            <foreach name="cate" item="vo">
                <tr>
                    <td>
                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}">
                    </td>
                    <td><b>{$vo.id}</b></td>
                    <td><b>{$vo.vod_cat_id}</b></td>
                    <td>
                        <a >{$vo.cate_name}</a>
                    </td>
                    <td>
                        {$vo.type}
                    </td>
                    <td>
                        {$vo.level}
                    </td>
                    <td>
                        {:date('Y-m-d H:i',$vo['create_time'])}

                    </td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:cmf_plugin_url('Aliyunvod://AdminVod/addCategory',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete"
                           href="{:cmf_plugin_url('Aliyunvod://AdminVod/delCategory',array('id'=>$vo['id'],'vod_cat_id'=>$vo['vod_cat_id']))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            
        </table>
        
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>

<include file="public/scripts"/>
</body>
</html>